{% extends 'base.html' %}
{% load humanize %}
{% block page-content %}
{% include 'nav_cat_bar.html' %}
{% load bootstrap %}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-10">
            <div class="ibox float-e-margins">
                <div id="ibox-content" class="ibox-title">
                    <h5>{{ tip }}</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                        <div class="panel-body">
                            <div class="tab-content">
                                <div id="tab-1" class="ibox float-e-margins tab-pane active">
                                    {% if error %}
                                        <div class="alert alert-warning text-center">{{ error }}</div>
                                    {% endif %}
                                    {% if msg %}
                                        <div class="alert alert-success text-center">{{ msg }}</div>
                                    {% endif %}
                                    <form id="WebSiteForm" method="post" class="form-horizontal">
                                        {{ af.project|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.platform|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.repos_name|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.domain|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.p_ip|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.s_ip|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.web_dir|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.remark|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.version|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        {{ af.admin_user|bootstrap_horizontal }}
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <div class="col-sm-4 col-sm-offset-2">
                                                <button class="btn btn-white" type="reset"> 重置 </button>
                                                <button class="btn btn-primary" type="submit"> 提交 </button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}